package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-04-07
 */
@Data
@TableName("back")
public class Back implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String orderNumber;

//    @ApiModelProperty(value = "下单用户id")
    private Integer consumerId;

//    @ApiModelProperty(value = "商户id")
    private Integer merchantId;

//    @ApiModelProperty(value = "总价")
    private Float totalPrice;

//    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createDate;

//    @ApiModelProperty(value = "退货理由")
    private String backReason;

//    @ApiModelProperty(value = "退货标志, B001-1(无) B001-2(用户退货申请审核) B001-3(审核通过) B001-4(无)")
    private String backTag;

//    @ApiModelProperty(value = "商品轮播展示图或者详情图路径")
    private String imgLink;

    @TableField(exist = false)
    private List<BackDetails> backDetails;


}
